package service

import (
	"context"
	v1 "gitlab.cqcb.com/shangyou_mic/dscm-approve-api-pb/api/roses/v1"
	"rosesbff/internal/biz"
)

type Separate struct {
	v1.UnimplementedSeparateServer
	sep *biz.Separate
}

func NewSeparate(
	sep *biz.Separate,
) (*Separate, error) {
	result := &Separate{
		sep: sep,
	}
	return result, nil
}

func (s *Separate) CredentialsSecurityToken(ctx context.Context, req *v1.Empty) (*v1.CredentialsSecurityTokenReply, error) {
	return s.sep.CredentialsSecurityToken(ctx, req)
}

func (s *Separate) GetUploadCredentials(ctx context.Context, req *v1.GetUploadCredentialsRequest) (*v1.GetUploadCredentialsResponse, error) {
	return s.sep.GetUploadCredentials(ctx, req)
}

func (s *Separate) OSSCallback(ctx context.Context, req *v1.OSSCallbackRequest) (*v1.OSSCallbackResponse, error) {
	return s.sep.OSSCallback(ctx, req)
}
